package com.lizhenyao.waimai.service.impl;

import com.lizhenyao.waimai.dataobject.SellerInfo;
import com.lizhenyao.waimai.repository.SellerInfoRespository;
import com.lizhenyao.waimai.service.ISellerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: lizhenyao
 * @Desciption: 卖家端的用户接口实现类
 */
@Service("iSellerService")
public class SellerServiceImpl implements ISellerService{

    @Autowired
    private SellerInfoRespository respository;

    @Override
    public SellerInfo findSellerInfoByOpenid(String openid) {
        return respository.getByOpenid(openid);
    }
}
